/*
 * jiyan
 */
package com.jiyan.material.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.material.facade.MaterialCategorySV;
import com.jiyan.material.dao.MaterialCategoryDAO;
import com.jiyan.material.entity.MaterialCategory;


/**
 * 供应类型
 * @author jiyan
 */
@Component
@Service
public class MaterialCategorySVImpl extends BaseMybatisSVImpl<MaterialCategory,Long> implements MaterialCategorySV{


	@Resource
	private MaterialCategoryDAO materialCategoryDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return materialCategoryDAO;
	}


	/**
	 * 加载对象供应类型 通过code
	 * @param code 编码
	 * @return MaterialCategory
	 */
     @Override
     public MaterialCategory loadByCode(java.lang.String code) {
		return materialCategoryDAO.loadByCode(code);
	 }

     /**
      * 删除对象供应类型
	   * @param id * @param code 编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code) {
		materialCategoryDAO.delete(id,code);
	 }



}